<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title><?php echo C('SITE_INFO.name');?></title>
<script type="text/javascript" src="__PUBLIC__/scripts/jquery-1.7.2.min.js"></script>
<link href="__PUBLIC__/Catalog/css/common.css" rel="stylesheet" type="text/css" />

<link href="__PUBLIC__/Catalog/css/ordersContent.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="main">
   <div class="title">
         <div class="title1">
             <a href="<?php echo ($back); ?>" id="back"> < </a>订单详情
         </div>
   </div>
   <div class="jiaoyi">
      <dl>
         <dt><?php echo ($orderDetail["products_name"]); ?></dt>
         <dd>下单时间:<?php echo ($orderDetail["order_date_added"]); ?></dd>
         <dd>订单编号:<?php echo ($orderDetail["order_num"]); ?></dd>
         <dd>卖家用户:<?php echo ($orderDetail["contact_person"]); ?> <?php echo ($orderDetail["contact_tel"]); ?></dd>
         <dd>交易方式: <span style="color: #09C"><?php if($orderDetail['order_type'] == 1): ?>线下交易<?php else: ?>在线交易<?php endif; ?></span></dd>
         <dd><?php if($orderDetail['products_type'] == 3): ?>商品类型:公益品<?php else: ?>单价: <strong style="color:red;"><?php echo ($orderDetail["pay_price"]); ?>元</strong><?php endif; ?></dd>
      </dl>
   </div>
   <?php if($orderDetail['order_type'] == 0): ?><div class="jiaoyi2">
      <dl>
         <dt>收货信息:</dt>
         <dd>收件人: <span style="color: #09C"><?php echo ($orderDetail["shipping_lastname"]); ?></span></dd>
         <dd>电话:<?php echo ($orderDetail["tel"]); ?></dd>
         <dd style="min-height:50px;">地址:<?php echo ($orderDetail["shipping_address_1"]); ?>-<?php echo ($orderDetail["shipping_address_2"]); ?></dd>
         
         <dd style="border-top:1px solid #CCC;">快递单号: <strong style="color:red;"><?php echo ($orderDetail["delivery_num"]); ?></strong></dd>
         <dd>快递公司:<?php echo ($orderDetail["delivery_company"]); ?></dd>
      </dl>
   </div><?php endif; ?>
   <div class="remark">
      备注信息: <strong style="color:red;"><?php echo ($orderDetail["comment"]); ?></strong>
   </div>
   
  <!--  <div class="sub">
       <a href="#">收货评价</a>
       <a href="<?php echo U('Order/report');?>?orderId=<?php echo ($orderDetail["order_id"]); ?>">订单申诉</a>
   </div> -->
</div>

<script type="text/javascript"> 
window.onload = function (){

	var oStar = document.getElementById("star");
	var aLi = oStar.getElementsByTagName("li");
	var oUl = oStar.getElementsByTagName("ul")[0];
	var oSpan = oStar.getElementsByTagName("span")[1];
	var oP = oStar.getElementsByTagName("p")[0];
	var i = iScore = iStar = 0;
	var aMsg = [
				"很不满意|差得太离谱，与卖家描述的严重不符，非常不满",
				"不满意|部分有破损，与卖家描述的不符，不满意",
				"一般|质量一般，没有卖家描述的那么好",
				"满意|质量不错，与卖家描述的基本一致，还是挺满意的",
				"非常满意|质量非常好，与卖家描述的完全一致，非常满意"
				]
	
	for (i = 1; i <= aLi.length; i++){
		aLi[i - 1].index = i;
		
		//鼠标移过显示分数
		aLi[i - 1].onmouseover = function (){
			fnPoint(this.index);
			//浮动层显示
			oP.style.display = "block";
			//计算浮动层位置
			oP.style.left = oUl.offsetLeft + this.index * this.offsetWidth - 104 + "px";
			//匹配浮动层文字内容
			oP.innerHTML = "<em><b>" + this.index + "</b> 分 " + aMsg[this.index - 1].match(/(.+)\|/)[1] + "</em>" + aMsg[this.index - 1].match(/\|(.+)/)[1]
		};
		
		//鼠标离开后恢复上次评分
		aLi[i - 1].onmouseout = function (){
			fnPoint();
			//关闭浮动层
			oP.style.display = "none"
		};
		
		//点击后进行评分处理
		aLi[i - 1].onclick = function (){
			iStar = this.index;
			oP.style.display = "none";
			oSpan.innerHTML = "<strong>" + (this.index) + " 分</strong> (" + aMsg[this.index - 1].match(/\|(.+)/)[1] + ")"
		}
	}
	
	//评分处理
	function fnPoint(iArg){
		//分数赋值
		iScore = iArg || iStar;
		for (i = 0; i < aLi.length; i++) aLi[i].className = i < iScore ? "on" : "";	
	}
	
};
</script>
<div class="index-foot">
    <div class="index-foot2">
            <ul>
              <li>
                  <dl>
                      <dd class="index-dds"><a href="<?php echo U('Index/index');?>"><img src="__PUBLIC__/Catalog/images/house.png" /></a></dd>
                      <dd><a href="<?php echo U('Index/index');?>">首页</a></dd>
                  </dl>
              </li>
              <li>
                  <dl>
                      <dd class="index-dds"><a href="<?php echo U('Products/index');?>"><img src="__PUBLIC__/Catalog/images/cate1.png" /></a></dd>
                      <dd><a href="<?php echo U('Products/index');?>">商品</a></dd>
                  </dl>
              </li>
              <li>
                  <dl>
                      <dd><a href="<?php echo U('Mproducts/publish');?>"><img src="__PUBLIC__/Catalog/images/jia.png"style=" width:50px; height:50px;" /></a></dd>
                  </dl>
              </li>
              <li>
                  <dl>
                      <dd class="index-dds"><a href="<?php echo U('Membership/leaveword');?>"><img src="__PUBLIC__/Catalog/images/<?php if($count > 0): ?>message-hot.png<?php else: ?>message.png<?php endif; ?>" /></a></dd>
                      <dd><a href="<?php echo U('Membership/leaveword');?>">信息</a></dd>
                  </dl>
              </li>
              <li>
                  <dl>
                      <dd class="index-dds"><a href="<?php echo U('Membership/index');?>?uid=<?php echo ($uid); ?>"><img src="__PUBLIC__/Catalog/images/men.png" /></a></dd>
                      <dd><a href="<?php echo U('Membership/index');?>?uid=<?php echo ($uid); ?>">我的</a></dd>
                  </dl>
              </li>
            </ul>       
    </div>
</div>
</body>
</html>